home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _F32C0B97AAC74E318F78AFC730EBFEFB < prev    next >
Encoding:
Text File  |  2004-07-20  |  6.5 KB  |  275 lines

  1. // $TEXTURE1
  2. // $TEX1OPTIONSFILE
  3. // $DIRT
  4. // $DIRTOPTIONSFILE
  5. // $BROKEN
  6. // $BROKENOPTIONSFILE
  7. // $SPECPOW
  8. // $REFL_STRENGTH
  9. // $CULLING
  10.  
  11.  
  12. Shader()
  13. {
  14.     ShaderQuality(5)
  15.     Pass()
  16.     {
  17.         //lighting()
  18.  
  19.         VertexShader("CarGB_CmCd_Bump_ps20.vsh")
  20.         Pixelshader("CarGB_CmCd_Bump_ps20.psh")
  21.  
  22.         !include("__tex1.mtt")
  23.         !include("__Dirt.mtt")
  24.         !include("__CloudsVS.mtt")
  25.         !include("__TerrainColormapVS.mtt")
  26. //        !include("__TerrainColormapSmallVS.mtt")
  27. //        !include("__DynamicCubeMap.mtt")
  28.         !include("__CubeMap.mtt")
  29.         !include("__DirtNormalsMap.mtt")
  30.         !include("__Broken.mtt")        
  31.  
  32.         TFactor(0.0, 0.0, REFL_STRENGTH, 1.0)
  33.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  34.  
  35.         !include(BFUNC)
  36.     }
  37.     sortweight("depth_sorted")
  38.     Cull(CULLING)
  39. }
  40.  
  41.  
  42. shader()
  43. {
  44.     ShaderQuality(3)
  45.     pass()
  46.     {
  47.         //Lighting()
  48.         Pixelshader("CarGB_CmCd_ps14.psh")
  49.         Vertexshader("CarGB_CmCd_ps14.vsh")
  50.  
  51.         !include("__tex1.mtt")
  52.         !include("__Dirt.mtt")
  53.         !include("__TerrainColormapVS.mtt")
  54. //        !include("__TerrainColormapSmallVS.mtt")
  55.         !include("__CloudsVS.mtt")
  56. //        !include("__DynamicCubeMap.mtt")
  57.         !include("__CubeMap.mtt")
  58.         !include("__Broken.mtt")        
  59.  
  60.         TFactor(0.0, 0.0, REFL_STRENGTH, 1.0)
  61.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  62.  
  63.         !include(BFUNC)
  64.     }
  65.     sortweight("depth_sorted")
  66.     Cull(CULLING)
  67. }
  68.  
  69.  
  70. shader()
  71. {
  72.     ShaderQuality(2)
  73.     pass()
  74.     {
  75.         //Lighting()
  76.         Pixelshader("CarG_Cm_ps11.psh")
  77.         Vertexshader("CarG_Cm_ps11.vsh")
  78.  
  79.         !include("__tex1.mtt")
  80.         !include("__Dirt.mtt")
  81.         !include("__TerrainColormapSmallVS.mtt")
  82. //        !include("__DynamicCubeMap.mtt")
  83.         !include("__CubeMap.mtt")
  84.  
  85.         TFactor(0.0, 0.0, REFL_STRENGTH, 1.0)
  86.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // B - refl strength, A - dirt level
  87.  
  88.         !include(BFUNC)
  89.     }
  90.     pass()
  91.     {
  92.         //Lighting()
  93.         Pixelshader("CarGB_pass2_ps11.psh")
  94.         Vertexshader("CarGB_pass2_ps11.vsh")
  95.  
  96.         !include("__Broken.mtt")
  97.         !include("__TerrainColormapSmallVS.mtt")        
  98.  
  99.         BlendFunc("one", "one")
  100.     }
  101.     
  102.     sortweight("depth_sorted")
  103.     Cull(CULLING)
  104. }
  105.  
  106.  
  107.  
  108. shader()
  109. {
  110.     ShaderQuality(1)
  111.     pass()
  112.     {
  113.         Pixelshader("CarGB_ps11.psh")
  114.         Vertexshader("CarGB_ps11.vsh")
  115.  
  116.         !include("__tex1.mtt")
  117.         !include("__Dirt.mtt")
  118.         !include("__TerrainColormapSmallVS.mtt")
  119.         !include("__Broken.mtt")        
  120.  
  121.         TFactor(0.0, 0.0, REFL_STRENGTH, 1.0)
  122.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // B - refl strength, A - dirt level
  123.  
  124.         !include(BFUNC)
  125.     }
  126.     
  127.     sortweight("depth_sorted")
  128.     Cull(CULLING)
  129. }
  130.  
  131.  
  132. //=========================== GF2 ======================================
  133. shader()
  134. {
  135.     ShaderQuality(2)
  136.     pass()
  137.     {
  138.         Lighting()
  139.         tmu()
  140.         {
  141.             Texture()
  142.             {
  143.                 Mapchannel(0)
  144.                 Image(TEXTURE1)
  145.                 !include(TEX1OPTIONSFILE)
  146.             }
  147.             ColorOp("mul", "current", "texture", "current")
  148.             AlphaOp("arg1", "texture_a", "current", "current")
  149.         }
  150.         AmbientColor(%daycolor_a, %daycolor_a, %daycolor_a, 1.000)
  151.         DiffuseColor(%daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a)
  152.         SpecularColor(%sunvisibility, %sunvisibility, %sunvisibility, 1.000)
  153.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  154.         SpecularPow(SPECPOW)
  155.         BlendFunc("one", "inv_src_alpha")
  156.                
  157.     }
  158.     pass()
  159.     {
  160.         Lighting()
  161.         tmu()
  162.         {
  163.             Texture()
  164.             {
  165.                 Mapchannel(0)
  166.                 Image(DIRT_GF2)
  167.                 !include(DIRTOPTIONSFILE)
  168.             }
  169.             ColorOp("mul", "tfactor", "current", "current")
  170.             AlphaOp("mul", "tfactor_a", "texture_a", "current")       
  171.         }
  172.         tfactor(%dirtcolor_r, %dirtcolor_g, %dirtcolor_b, 1.0)
  173.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0)
  174.         
  175.         AmbientColor(%daycolor_a, %daycolor_a, %daycolor_a, 1.000)
  176.         DiffuseColor(%daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a)
  177.         SpecularColor(0.0, 0.0, 0.0, 1.000)
  178.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  179.         SpecularPow(0.0)
  180.         BlendFunc("src_alpha", "inv_src_alpha")
  181.     }
  182.     pass()
  183.     {
  184.         Lighting()
  185.         !include("__Broken.mtt")
  186.  
  187.         !include("__LightningColorsSpecGF2.mtt")  
  188.         BlendFunc("one", "one")
  189.     }
  190.  
  191.     pass()
  192.     {
  193.         Lighting()
  194.         tmu()
  195.         {
  196.             TexGen("planar")
  197.             TexMod("scale", "const", 0.00001, 0, 0, "const", 0.00001, 0, 0)
  198.             texture()
  199.             {
  200.                 Image(%colortexturesmall)
  201.                 addressfunc("clamp", "clamp", "clamp")
  202.             }
  203.             ColorOp("arg1", "tfactor", "current", "diffuse_a")
  204.             AlphaOp("add", "texture_a", "tfactor_a", "current")
  205.         }
  206.  
  207.         tmu()
  208.         {
  209.             ColorOp("arg1", "current", "texture", "current")
  210.             AlphaOp("add", "current", "diffuse_a", "current")
  211.         }         
  212.  
  213.         tfactor(0.0, 0.0, 0.0, %daycolor_a)
  214.  
  215.         AmbientColor(0.0, 0.0, 0.0, 1.000)
  216.         DiffuseColor(0.0, 0.0, 0.0, 0.3)
  217.         SpecularColor(0.0, 0.0, 0.0, 1.000)
  218.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  219.         SpecularPow(0.0)
  220.         
  221.         BlendFunc("inv_src_alpha", "src_alpha")        
  222.  
  223.         
  224.     }                    
  225. // odremowac po poprawce kuby ( liczba passow)
  226.     lightpass()
  227.     !include("spot_spotmap.mtt")    
  228.     
  229.     sortweight("depth_sorted")
  230.     Cull(CULLING)
  231. }
  232. //=======================================================
  233. /*
  234. shader()
  235. {
  236.     ShaderQuality(0)
  237.     pass()
  238.     {
  239.         Lighting()
  240.         Pixelshader("CarGB_sq0.psh")
  241.         Vertexshader("Common_specular.vsh")
  242.         !include("__tex1.mtt")
  243.         !include("__Broken.mtt")        
  244.         !include(BFUNC)
  245.     }
  246.     sortweight("depth_sorted")
  247.     Cull(CULLING)
  248. }
  249. */
  250. shader()
  251. {
  252.     ShaderQuality(0)
  253.     pass()
  254.     {
  255.         Lighting()
  256.         !include("__tex1.mtt")
  257.  
  258.         !include("__LightningColorsSpecGF2.mtt")          
  259.         !include(BFUNC)
  260.     }
  261.     pass()
  262.     {
  263.         Lighting()
  264.         !include("__Broken.mtt")
  265.  
  266.         !include("__LightningColorsSpecGF2.mtt")  
  267.         BlendFunc("one", "one")
  268.     }
  269. //    lightpass()
  270. //    !include("spot_spotmap.mtt")    
  271.     sortweight("depth_sorted")
  272.     Cull(CULLING)
  273. }
  274.  
  275.